inherited FrelatorioRequisicaoMercadoria: TFrelatorioRequisicaoMercadoria
  Left = 230
  Top = 160
  Height = 610
  Caption = 'ESTOQUE / REQUISI'#199#195'O / VALIDA'#199#195'O'
  FormStyle = fsNormal
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  inherited RLReport: TRLReport
    Left = 0
    Top = 213
    DataSource = DSPesquisa
    PreviewOptions.ShowModal = True
    inherited RLBand1: TRLBand
      Height = 79
      AutoSize = True
      inherited RLDBText1: TRLDBText
        Left = 0
        Top = 64
      end
      inherited RLMemo: TRLMemo
        Left = 343
        Top = 32
        Height = 41
      end
    end
    object RLBand2: TRLBand
      Left = 38
      Top = 117
      Width = 718
      Height = 21
      BandType = btHeader
      object RLLabel1: TRLLabel
        Left = 0
        Top = 1
        Width = 42
        Height = 15
        Caption = 'C'#243'digo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel2: TRLLabel
        Left = 64
        Top = 1
        Width = 61
        Height = 15
        Caption = 'Descri'#231#227'o'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel3: TRLLabel
        Left = 334
        Top = 1
        Width = 31
        Height = 15
        Caption = 'Unid.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel4: TRLLabel
        Left = 382
        Top = 1
        Width = 46
        Height = 15
        Caption = 'Localiz.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel5: TRLLabel
        Left = 507
        Top = 1
        Width = 54
        Height = 15
        Caption = 'Qtd. Req.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel6: TRLLabel
        Left = 576
        Top = 1
        Width = 58
        Height = 15
        Caption = 'Qtd. Aten.'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel7: TRLLabel
        Left = 659
        Top = 1
        Width = 47
        Height = 15
        Caption = 'Vr Total'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLDraw1: TRLDraw
        Left = 0
        Top = 18
        Width = 718
        Height = 2
        DrawKind = dkLine
        Pen.Style = psDot
      end
    end
    object RLBand3: TRLBand
      Left = 38
      Top = 138
      Width = 718
      Height = 19
      BeforePrint = RLBand3BeforePrint
      object RLDBText2: TRLDBText
        Left = 0
        Top = 1
        Width = 49
        Height = 15
        AutoSize = False
        DataField = 'ITENS_REQ_PRODCODIGO'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText3: TRLDBText
        Left = 64
        Top = 1
        Width = 267
        Height = 15
        AutoSize = False
        DataField = 'ITENS_REQ_PROD_DESC'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText4: TRLDBText
        Left = 334
        Top = 1
        Width = 39
        Height = 15
        AutoSize = False
        DataField = 'PROD_UNIDSAIDA'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText5: TRLDBText
        Left = 382
        Top = 1
        Width = 126
        Height = 15
        DataField = 'PROD_LOCALIZACAO'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText6: TRLDBText
        Left = 507
        Top = 1
        Width = 56
        Height = 15
        Alignment = taCenter
        AutoSize = False
        DataField = 'ITENS_REQ_QUANTIDADE'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLDBText7: TRLDBText
        Left = 574
        Top = 1
        Width = 60
        Height = 15
        Alignment = taCenter
        AutoSize = False
        DataField = 'ITENS_REQ_QTD_ATENDIDA'
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object rlValorTotal: TRLDBText
        Left = 641
        Top = 1
        Width = 65
        Height = 15
        Alignment = taRightJustify
        AutoSize = False
        DataSource = DSPesquisa
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
    end
    object RLBand4: TRLBand
      Left = 38
      Top = 157
      Width = 718
      Height = 116
      BandType = btSummary
      BeforePrint = RLBand4BeforePrint
      object RLDraw3: TRLDraw
        Left = 4
        Top = 59
        Width = 235
        Height = 7
        DrawKind = dkLine
        Pen.Style = psDot
      end
      object RLDraw4: TRLDraw
        Left = 242
        Top = 59
        Width = 235
        Height = 7
        DrawKind = dkLine
        Pen.Style = psDot
      end
      object RLDraw5: TRLDraw
        Left = 480
        Top = 59
        Width = 235
        Height = 7
        DrawKind = dkLine
        Pen.Style = psDot
      end
      object RLLabel8: TRLLabel
        Left = 84
        Top = 66
        Width = 74
        Height = 15
        Alignment = taCenter
        Caption = 'Requisitante'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLLabel9: TRLLabel
        Left = 322
        Top = 66
        Width = 74
        Height = 15
        Alignment = taCenter
        Caption = 'Almoxarifado'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLLabel10: TRLLabel
        Left = 560
        Top = 66
        Width = 74
        Height = 15
        Alignment = taCenter
        Caption = 'Encarregado'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -12
        Font.Name = 'Arial'
        Font.Style = []
        ParentFont = False
      end
      object RLLabel11: TRLLabel
        Left = 4
        Top = 43
        Width = 235
        Height = 16
        Alignment = taCenter
        AutoSize = False
      end
      object RLLabel12: TRLLabel
        Left = 242
        Top = 43
        Width = 235
        Height = 16
        Alignment = taCenter
        AutoSize = False
      end
      object RLLabel13: TRLLabel
        Left = 480
        Top = 43
        Width = 235
        Height = 16
        Alignment = taCenter
        AutoSize = False
      end
      object rlTotal: TRLDBResult
        Left = 632
        Top = 0
        Width = 74
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Borders.Sides = sdCustom
        Borders.DrawLeft = False
        Borders.DrawTop = True
        Borders.DrawRight = False
        Borders.DrawBottom = False
        DataSource = DSPesquisa
        Info = riSum
        ResetAfterPrint = True
      end
      object RLLabel14: TRLLabel
        Left = 585
        Top = 1
        Width = 32
        Height = 16
        Alignment = taRightJustify
        Caption = 'Total'
      end
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      'SELECT'
      '  REQUISICAO.REQ_CODIGO,'
      '  REQUISICAO.REQ_DATA,'
      '  REQUISICAO.REQ_SOLICITANTE_DESC,'
      '  REQUISICAO.REQ_NTALAO,'
      '  REQUISICAO.REQ_ORDEM_SERVICO,'
      '  REQUISICAO.REQ_ULTIMA_VALIDACAO,'
      '  REQUISICAO.USUARIO_AUTERACAO,'
      '  REQUISICAO.REQ_AUTORIZANTE_DESC,'
      '  REQUISICAO.REQ_AUTORIZADA,'
      '  TIPO_REQUISICAO.TIPO_REQ_DESC,'
      '  CENTROCUSTO.DESCRICAO,'
      
        '  CENTROCUSTO.MARCA_CHASSI ||'#39'-'#39'|| CENTROCUSTO.TIPO_CHASSI AS CH' +
        'ASSI,'
      '  ITENSREQUISICAO.ITENS_REQ_VALIDACAO,'
      '  ITENSREQUISICAO.ITENS_REQ_PRODCODIGO,'
      '  ITENSREQUISICAO.ITENS_REQ_PROD_DESC,'
      '  ITENSREQUISICAO.ITENS_REQ_QUANTIDADE,'
      '  PRODUTO.PROD_UNIDSAIDA,'
      '  PRODUTO.PROD_LOCALIZACAO,'
      
        '  (PRODUTO.PROD_VALORCOMPRA * ITENSREQUISICAO.ITENS_REQ_QUANTIDA' +
        'DE) AS VR_TOTAL_REQUISITADO,'
      
        '  (PRODUTO.PROD_VALORCOMPRA * ITENSREQUISICAO.ITENS_REQ_QUANTIDA' +
        'DE) AS VR_TOTAL_ATENDIDO,'
      '  ITENSREQUISICAO.ITENS_REQ_DATA_VALIDACAO,'
      '  ITENSREQUISICAO.ITENS_REQ_QTD_ATENDIDA'
      'FROM'
      '  ITENSREQUISICAO'
      
        '  INNER JOIN REQUISICAO ON (ITENSREQUISICAO.ITENS_REQ_REQCODIGO ' +
        '= REQUISICAO.REQ_CODIGO)'
      
        '  INNER JOIN TIPO_REQUISICAO ON (REQUISICAO.REQ_TIPO_REQUISICAO ' +
        '= TIPO_REQUISICAO.TIPO_REQ_CODIGO)'
      
        '  INNER JOIN CENTROCUSTO ON (REQUISICAO.REQ_CENTROCUSTO = CENTRO' +
        'CUSTO.CODIGO)'
      
        '  INNER JOIN PRODUTO ON (ITENSREQUISICAO.ITENS_REQ_PRODCODIGO = ' +
        'PRODUTO.PROD_CODIGO)')
    Left = 304
    Top = 345
    object QPesquisaREQ_CODIGO: TIntegerField
      FieldName = 'REQ_CODIGO'
    end
    object QPesquisaREQ_DATA: TDateTimeField
      FieldName = 'REQ_DATA'
    end
    object QPesquisaREQ_SOLICITANTE_DESC: TStringField
      FieldName = 'REQ_SOLICITANTE_DESC'
      Size = 60
    end
    object QPesquisaREQ_NTALAO: TStringField
      FieldName = 'REQ_NTALAO'
      Size = 10
    end
    object QPesquisaREQ_ORDEM_SERVICO: TStringField
      FieldName = 'REQ_ORDEM_SERVICO'
      Size = 10
    end
    object QPesquisaREQ_ULTIMA_VALIDACAO: TDateTimeField
      FieldName = 'REQ_ULTIMA_VALIDACAO'
    end
    object QPesquisaTIPO_REQ_DESC: TStringField
      FieldName = 'TIPO_REQ_DESC'
      Size = 40
    end
    object QPesquisaDESCRICAO: TStringField
      FieldName = 'DESCRICAO'
      Size = 100
    end
    object QPesquisaPROD_UNIDSAIDA: TStringField
      FieldName = 'PROD_UNIDSAIDA'
      Size = 5
    end
    object QPesquisaPROD_LOCALIZACAO: TStringField
      FieldName = 'PROD_LOCALIZACAO'
      Size = 6
    end
    object QPesquisaVR_TOTAL_REQUISITADO: TFloatField
      FieldName = 'VR_TOTAL_REQUISITADO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaVR_TOTAL_ATENDIDO: TFloatField
      FieldName = 'VR_TOTAL_ATENDIDO'
      DisplayFormat = '#,##0.00'
    end
    object QPesquisaUSUARIO_AUTERACAO: TStringField
      FieldName = 'USUARIO_AUTERACAO'
      Size = 22
    end
    object QPesquisaREQ_AUTORIZANTE_DESC: TStringField
      FieldName = 'REQ_AUTORIZANTE_DESC'
      Size = 40
    end
    object QPesquisaREQ_AUTORIZADA: TStringField
      FieldName = 'REQ_AUTORIZADA'
      FixedChar = True
      Size = 1
    end
    object QPesquisaITENS_REQ_PRODCODIGO: TIntegerField
      FieldName = 'ITENS_REQ_PRODCODIGO'
    end
    object QPesquisaITENS_REQ_PROD_DESC: TStringField
      FieldName = 'ITENS_REQ_PROD_DESC'
      Size = 60
    end
    object QPesquisaITENS_REQ_DATA_VALIDACAO: TDateTimeField
      FieldName = 'ITENS_REQ_DATA_VALIDACAO'
    end
    object QPesquisaITENS_REQ_VALIDACAO: TStringField
      FieldName = 'ITENS_REQ_VALIDACAO'
      FixedChar = True
      Size = 1
    end
    object QPesquisaITENS_REQ_QUANTIDADE: TFloatField
      FieldName = 'ITENS_REQ_QUANTIDADE'
      DisplayFormat = '#.###'
    end
    object QPesquisaITENS_REQ_QTD_ATENDIDA: TFloatField
      FieldName = 'ITENS_REQ_QTD_ATENDIDA'
      DisplayFormat = '#.###'
    end
    object QPesquisaCHASSI: TStringField
      FieldName = 'CHASSI'
      Size = 26
    end
  end
  inherited DSPesquisa: TDataSource
    Left = 248
    Top = 345
  end
end
